﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Theme.aspx.cs" Inherits="Manage_User_Theme" %>

<html>
<head>
    <link rel="icon" href="../pic/favicon.ico" type="image/x-icon" />
    <link rel="shortcut icon" href="../pic/favicon.ico" type="image/x-icon" />
    <link rel="stylesheet" href="../css/style.css" type="text/css" />

    <script src="../js/iportalcore.js"></script>

    <script src="/Resource/Scripts/global.v1.3.5.js"></script>

    <div id="popupMessage" onclick="_dispear();">
    </div>
    <link rel="stylesheet" href="../Themes/<%=ManageHelper.GetTheme()%>/style.css" type="text/css" />
    <meta http-equiv="content-type" content="text/html;charset=utf-8">

    <script language="javascript" type="text/javascript">
function gotoMain()
{
	window.top.location.href = "../main.aspx";
}
    </script>

</head>
<body>
    <div class="tab">
        <div class="tabOn">
            主题设置</div>
        <div class="tabOff">
            <a href="profile.aspx">修改资料</a></div>
        <div class="tabOff">
            <a href="password.aspx">更改密码</a></div>
        <div class="clearer">
        </div>
    </div>
    <form name="MyForm" method="post" action="?act=save" id="MyForm">
    <input type="hidden" id="CurrentTheme" value="<%=ManageHelper.GetTheme() %>" />
    <div class="column">
        <table cellpadding="3" width="95%" align="center">
            <tr>
                <td>
                    <table cellspacing="2" cellpadding="2" rules="all" align="center" border="0" id="MyDataGrid"
                        style="border-width: 0px; width: 90%;">
                        <tr class="summary-title" align="center" style="height: 25px;">
                            <td>
                                选择
                            </td>
                            <td>
                                主题名称
                            </td>
                            <td>
                                主题文件夹
                            </td>
                            <td>
                                主题介绍
                            </td>
                            <td>
                                样图
                            </td>
                        </tr>
                        <%
                            foreach (KeRui.Model.SysConfig model in listTheme)
                            {
                        %>
                        <tr class="tdbg" onmouseover="this.className='tdbg-dark';" onmouseout="this.className='tdbg';"
                            style="height: 25px;">
                            <td align="center" style="width: 50px;">
                                <input type="radio" name="choose" id="choose" onclick="document.getElementById('CurrentTheme').value=this.value;"
                                    value='<%=model.Value%>' <%=ManageHelper.GetTheme().ToLower()==model.Value.ToLower()?"checked":"" %> />
                            </td>
                            <td align="center" style="width: 120px;">
                                <%=model.Name%>
                            </td>
                            <td align="center" style="width: 100px;">
                                <%=model.Value%>
                            </td>
                            <td align="left">
                                <%=model.Note%>
                            </td>
                            <td align="center" style="width: 130px;">
                                <img border="0" src="../Themes/<%=model.Value%>/thumbnail.gif" />
                            </td>
                        </tr>
                        <%
                            }
                        %>
                    </table>
                </td>
            </tr>
            <tr>
                <td align="center">
                    <input type="button" class="button" value="修 改" onclick="javascript:location.href='?act=Set&Theme=' + document.getElementById('CurrentTheme').value;" />
                </td>
            </tr>
        </table>
    </div>
    </form>
</body>
</html>
